<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div><input type="text" id="input"></div>
  <script>
    const ie = document.getElementById('input')
    ie.onchange = (e) => {
      console.log('on change!')
      console.log(e)
    }
    ie.oninput = (e) => {
      console.log('on input!')
      console.log(e)
      let startTime = performance.now()
      while(performance.now() - startTime < 3000) {}
      // ie.value = ie.value + e.data
    }
  </script>
</body>
</html>